﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace ImmovablesManager
{
    class DataGridUserEntrancerLogDataView: INotifyPropertyChanged
    {
        private Guid _advId;
        public Guid AdvId
        {
            get { return _advId; }
            set
            {
                _advId = value;
                NotifyPropertyChanged("AdvId");
            }
        }

        private string _FIO;
        public string FIO
        {
            get { return _FIO; }
            set
            {
                _FIO = value;
                NotifyPropertyChanged("FIO");
            }
        }

        private string _role;
        public string Role
        {
            get { return _role; }
            set
            {
                _role = value;
                NotifyPropertyChanged("Role");
            }
        }


        private string _inputTime;
        public string InputTime
        {
            get { return _inputTime; }
            set
            {
                _inputTime = value;
                NotifyPropertyChanged("InputTime");
            }
        }
        private string _outputTime;
        public string OutputTime
        {
            get { return _outputTime; }
            set
            {
                _outputTime = value;
                NotifyPropertyChanged("OutputTime");
            }
        }

        private string _duration;
        public string Duration
        {
            get { return _duration; }
            set
            {
                _duration = value;
                NotifyPropertyChanged("Duration");
            }
        }



        private void NotifyPropertyChanged(String info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }

        #region Implementation of INotifyPropertyChanged

        public event PropertyChangedEventHandler PropertyChanged;

        #endregion

    }
}
